<?php

namespace app\common\lib;

class SmsRedis
{
    /**
     * @var string  redis 登录、注册验证码前缀
     */
    public static $login_pre = "login_";
    public static $reg_pre = "reg_";

    public static function loginSmsKey($phoneNum)
    {
        return self::$login_pre.$phoneNum;
    }

    public static function regSmsKey($phoneNum)
    {
        return self::$login_pre.$phoneNum;
    }

}